
package com.joysuch.wwyt.datadump.biz.query;

import cn.zlg.common.datadump.condition.QueryCondtionDef;
import cn.zlg.common.datadump.condition.QueryFieldCondition;
import cn.zlg.common.datadump.condition.SortFieldDef;
import com.joysuch.wwyt.bp.entity.contractor.dsl.QBpContractor;
import com.joysuch.wwyt.bp.entity.dsl.QBpSystemVideo;
import com.querydsl.core.types.Order;

public class BpSystemVideoDumpQueryBean implements QueryCondtionDef {

    @Override
    public QueryFieldCondition[] getAllConditionDef() {
        QBpSystemVideo q = QBpSystemVideo.bpSystemVideo;
        return new QueryFieldCondition[] {
                new QueryFieldCondition("ids", q, q.id, q.id, "in"),
                new QueryFieldCondition("name", q, q.name, q.id, "contains"),
                new QueryFieldCondition("riskDistrictId", q, q.evaluation, q.id, "eq"),
                new QueryFieldCondition("brand", q, q.brand, q.id, "eq"),
        };
    }

    @Override
    public SortFieldDef[] getAllSortFieldDef() {
        return new SortFieldDef[] {
                new SortFieldDef(QBpSystemVideo.bpSystemVideo.id, "id", Order.DESC, true)
        };
    }
}
